BenSelect Documentation
Determining a Question based on RelationshipID
Send Feedback
JScript Examples > JScript for Questions > Determining a Question based on RelationshipID

Glossary Item Box

The following scripts determine a question based on RelationshipID.

 

Event.Value = Event.CurrentPerson.RelationshipID == 'Employee';

or

Event.Value = Event.CurrentPerson.RelationshipID == 0;


 

Event.Value = Event.CurrentPerson.RelationshipID == 0 || Event.CurrentPerson.RelationshipID == 1;


 
The ID is determined by dependency codes:
 
0 - ee
1 - so
2 - co
and so forth

©2024. All Rights Reserved.